import request from '../../utils/request'
import { TSystemNotice } from '../../Types/system'


// 获取系统公告
export const getSystemNotice = () => request.get('/public/notice')

// 发布系统公告
export const publishSystemNotice = (data: TSystemNotice) => request.post('/public/notice', data)

// 更新系统公告
export const updateSystemNotice = (data: TSystemNotice) => request.put('/public/notice', data)

// 删除系统公告
export const deleteSystemNotice = (id: number) => request.delete(`/public/notice/${id}`)
